package creational.builder;

import lombok.Data;

/**
 * @Description: 消息抽象
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
@Data
public abstract class AbstractMessage {
    private String from;
    private String to;
    // 实际开发data是一个class，为了降低复杂度，用String替代
    private String data;

    public abstract void send();
}
